﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>一个链接打开两个地址</title>
    <script type="text/javascript">
        function hrefClick(newWin, locationWin) {
            window.open(newWin);            //打开新的窗口
            window.location = locationWin;  //当前位置窗口也改变
        }
    </script>
</head>
<body>
<a href="javascript:hrefClick('http://www.google.net', 'http://www.baidu.net');">
    打开页面
</a>
</body>
</html>